<?
class Vakanz_CRM_Controller_Adminaction extends Vakanz_CRM_Controller_Action {


	public function init() {
		parent::init();
		$crm = new Zend_Session_Namespace('CRM_Login');
		if ($crm->loginStatus != 4) {
			$crm->lastpage_visited = preg_replace('/^\/?crm/','',$_SERVER['REQUEST_URI']);
			$this->_redirect('/login');
		}
	}
}
